
import { type ResType } from "./common"
import { http } from "@/utils"
// 响应数据类型
export interface detailsData {
  title:string,
  art_id: string,
  attidue: string,
  id: number,
  aut_name: string,
  comm_count: number,
  content: string
}

export function fetchDetails(id: string) {
  return http.request<ResType<detailsData>>({
    url: `/articles/${id}`
  })
}